﻿using System;

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200011A RID: 282
	public class PostProcessingContext
	{
		// Token: 0x170000EB RID: 235
		// (get) Token: 0x06000537 RID: 1335 RVA: 0x00028C94 File Offset: 0x00026E94
		// (set) Token: 0x06000538 RID: 1336 RVA: 0x00028C9C File Offset: 0x00026E9C
		public bool interrupted { get; private set; }

		// Token: 0x06000539 RID: 1337 RVA: 0x00028CA5 File Offset: 0x00026EA5
		public void Interrupt()
		{
			this.interrupted = true;
		}

		// Token: 0x0600053A RID: 1338 RVA: 0x00028CAE File Offset: 0x00026EAE
		public PostProcessingContext Reset()
		{
			this.profile = null;
			this.camera = null;
			this.materialFactory = null;
			this.renderTextureFactory = null;
			this.interrupted = false;
			return this;
		}

		// Token: 0x170000EC RID: 236
		// (get) Token: 0x0600053B RID: 1339 RVA: 0x00028CD4 File Offset: 0x00026ED4
		public bool isGBufferAvailable
		{
			get
			{
				return this.camera.actualRenderingPath == RenderingPath.DeferredShading;
			}
		}

		// Token: 0x170000ED RID: 237
		// (get) Token: 0x0600053C RID: 1340 RVA: 0x00028CE4 File Offset: 0x00026EE4
		public bool isHdr
		{
			get
			{
				return this.camera.allowHDR;
			}
		}

		// Token: 0x170000EE RID: 238
		// (get) Token: 0x0600053D RID: 1341 RVA: 0x00028CF1 File Offset: 0x00026EF1
		public int width
		{
			get
			{
				return this.camera.pixelWidth;
			}
		}

		// Token: 0x170000EF RID: 239
		// (get) Token: 0x0600053E RID: 1342 RVA: 0x00028CFE File Offset: 0x00026EFE
		public int height
		{
			get
			{
				return this.camera.pixelHeight;
			}
		}

		// Token: 0x170000F0 RID: 240
		// (get) Token: 0x0600053F RID: 1343 RVA: 0x00028D0B File Offset: 0x00026F0B
		public Rect viewport
		{
			get
			{
				return this.camera.rect;
			}
		}

		// Token: 0x0400074E RID: 1870
		public PostProcessingProfile profile;

		// Token: 0x0400074F RID: 1871
		public Camera camera;

		// Token: 0x04000750 RID: 1872
		public MaterialFactory materialFactory;

		// Token: 0x04000751 RID: 1873
		public RenderTextureFactory renderTextureFactory;
	}
}
